﻿using PathologyDAL.Modle;
using PathologyDAL.Service;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PathologyBLL.Service
{
    public class AddTestData
    {
        public static async void Add()
        {
            ConditionServices conditionServices0 = new ConditionServices((Filter)0);
            ConditionServices conditionServices1 = new ConditionServices((Filter)1);
            ConditionServices conditionServices2 = new ConditionServices((Filter)2);
            ConditionServices conditionServices3 = new ConditionServices((Filter)3);
            ConditionServices conditionServices4 = new ConditionServices((Filter)4);
            TumourServices tumourService = new TumourServices();

            for (int i = 0; i < 100; i++)

            {
                await conditionServices0.AddAsync("细胞形态" + i);
                await conditionServices1.AddAsync("免疫组化" + i);
                await conditionServices2.AddAsync("组织学结构" + i);
                await conditionServices3.AddAsync("间质" + i);
                await conditionServices4.AddAsync("血管" + i);
                await tumourService.AddTumourAsync(new Tumour { Name = "肿瘤" + i });


            }



        }
    }
}
